.PHONY:all
all:publish_client consume_client
consume_client:consume_client.cc ../mqcomm/mq_proto.pb.cc ../mqcomm/mq_msg.pb.cc ../mqdemo/muduo/include/muduo/proto/codec.cc
	g++ -o $@ $^ -std=c++11 -I../mqdemo/muduo/include -L../mqdemo/muduo/lib -lmuduo_net -lmuduo_base -pthread -lprotobuf -lz
publish_client:publish_client.cc ../mqcomm/mq_proto.pb.cc ../mqcomm/mq_msg.pb.cc ../mqdemo/muduo/include/muduo/proto/codec.cc
	g++ -o $@ $^ -std=c++11 -I../mqdemo/muduo/include -L../mqdemo/muduo/lib -lmuduo_net -lmuduo_base -pthread -lprotobuf -lz
.PHONY:clean
clean:
	rm -f publish_client consume_client